<include file="User:header"/>



<style type="text/css">
em { color:#F00}


</style>

<div class="wind_login" style="background:url(../Public/images/wind_bks1.png) no-repeat center">
    <div class="wind_loginson">
        <div class="wind_mobile1">
            <ul class="wind_mobile1ul">
                <li><span class="wind_mobile1ulspan">1</span>手机验证</li>
                <li><span class="wind_mobile1ulspan" style="color:#A0A0A0;">2</span>重设密码</li>
                <li><span class="wind_mobile1ulspan" style="color:#A0A0A0;">3</span>完成</li>
            </ul>
            <div class="wind_mobile1son">
                <form  id="myform2" method="post" action="{:U('User/Register/edit')}" >

                    <ul class="wind_zhuce1">

                        

                        


                        
                        <li>手机号码：</li>
                        <li>
                            <dd><input type="text" placeholder="手机号码" value="" id="mobile" name="mobile" class="reg-form-input rf-input-l" validate="required:true,mobile:true," /></dd>
                            <a href="#" class="code-box" id="btn_fahou"><input type="button" style="width: 150px;" id="btn_mss" class="wind_spans4" value="免费获取验证码" /></a>
                        </li>
                        <li>手机验证：</li>
                        <li>
                            <dd><input type="text" name="mobileyzm" class="reg-form-input rf-input-s" placeholder="请输入验证码" validate="required:true" /></dd>

                        </li>

                        

                        <li><input id="wind_spans3" type="submit" value="下一步" id="subbnt" style="float:left; margin-left:15px; margin-top:20px;" /></li>
                        

                    </ul>
                </form>
            </div>
        </div>
    </div>
</div>
  <script type="text/javascript">
$('#btn_mss').click(function(){
      var tel = $.trim($('#mobile').val());
       var partten = /^[1][34578][0-9]{9}$/;
	   
	  if(partten.test(tel)){
		  $.post('index.php?g=User&m=Sms&a=index', {'tel':tel},function(res){
              // alert(res);
			  if(res!=0){ alert('发送失败错误代码'+res)}
           });
		 }//else{alert('请输入手机号')}
    });
document.getElementById("btn_mss").onclick=function(){
    var mobile=document.getElementById("mobile").value;
    var partten = /^[1][34578][0-9]{9}$/;
    var fl=false;
    if(partten.test(mobile))
    {
        time(this);

    }

}

var wait=120;
  function time(o) {
    if (wait == 0) {
      o.removeAttribute("disabled");
      o.value="免费获取验证码";
      wait = 120;
    } else {
      o.setAttribute("disabled", true);
      o.value="重新发送(" + wait + ")";
      wait--;
      setTimeout(function() {
                time(o)
              },
              1000)
    }
  }


  
   //身份
   $('#group').change(function(e){
               // var opts = $('#x>li');
                //opts.removeClass('p');
                for (var i = 0; i <= 2; i++) {
                    if($(this).val()==1) {
                        $("#name_c").html('真实姓名：');
                        $("#name_d").attr('placeholder','真实姓名');
					
                    }
					if($(this).val()==2) {
                        $("#name_c").html('昵称：');
                        $("#name_d").attr('placeholder','昵称');
						
                    }
                    if($(this).val()==3) {
                        $("#name_c").html('公司名称：');
                        $("#name_d").attr('placeholder','公司名字');
						
                    }
                };
 
            });
			
	
</script>
                                                                                                                                                                                                                                                                                                                                                                                                                                                